package com.shiroha.chat.pojo;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.shiroha.chat.enums.MessageType;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.UUID;

/**
 * 聊天记录表
 */
@Data
@Table(value = "chat_record", schema = "public")
public class ChatRecord {
    @Id
    private Long id;
    private UUID senderId;
    private UUID receiverId;
    private Long groupId;
    private MessageType type;
    private String content;
    private String mediaUrl;
    private boolean isDeleted;
    private LocalDateTime createdAt;
}
